Circuit and method of adjusting system clock in low voltage detection, and low voltage reset circuit

ABSTRACT

The present invention discloses a circuit and a method of adjusting system clock in low voltage detection, and a low voltage reset circuit. The circuit of adjusting system clock in low voltage detection comprises: a clock generator for supplying a clock to at least one circuit in a system; and a low voltage reset circuit for generating an adjustment signal according to a detected voltage level, so that the clock generator adjusts or stops the clock supplied to the at least one circuit in the system.

BACKGROUND OF THE INVENTION

1. Field of Invention

The present invention relates to a circuit and a method of adjusting system clock in low voltage detection; particularly, it relates to a circuit and a method which suspend or slow down but do not immediately reset an essential clock inside of an integrated circuit when a low voltage condition is detected, and a corresponding low voltage reset circuit.

2. Description of Related Art

An electronic circuit often requires a low voltage reset (LVR) circuit which is capable of generating a reset signal to initialize internal settings of the electronic circuit during system power on process. The electronic circuit may further include another LVR circuit which may be the same as or different from the previous LVR circuit, to reset the electronic circuit when a low voltage condition occurs during system operation, so as to avoid damages caused by circuit malfunction.

Typically, a specification of normal operation voltage range is defined in product design and development. When it is detected that the operation voltage is lower than the lower voltage limit, the LVR circuit will be triggered. However for safety, this lower voltage limit is usually designed to be higher than required. For example, assuming that the standard operation voltage is 1.8V, it is typically designed to generate a reset signal when the supplied voltage is lower than 1.6V. However, such arrangement may unnecessarily reset the system due to an occasional voltage surge, such that the product can not pass product test wherein the conditions are usually set stricter. In the foregoing example, it often happens that the circuit is unnecessarily reset under ESD test, because a voltage lower than 1.6V often occurs. Therefore, it is preferred if the threshold for low voltage reset can be set to a lower level to avoid triggering unnecessary reset. However, this is in conflict with the design specification which guarantees a minimum operation voltage, that is, there is a potential risk of circuit malfunction if the lower voltage limit is set lower.

In view of the foregoing drawback, the present invention is proposed as a solution to it.

SUMMARY OF THE INVENTION

The first objective of the present invention is to provide a circuit of adjusting system clock in low voltage detection, which first adjusts the speed of an essential clock inside an integrated circuit when it detects that the operation voltage is lower than the normal operation range, and next resets the circuit when it detects an even lower voltage. Accordingly, when temporary voltage fluctuation occurs, it can avoid repetitively resetting the circuit, and also prevents the circuit from malfunctioning.

The second objective of the present invention is to provide a method of adjusting system clock in low voltage detection.

The third objective of the present invention is to provide a low voltage reset circuit.

In order to achieve the foregoing objective, in one perspective, the present invention provides a circuit of adjusting system clock in low voltage detection, comprising: a clock generator for supplying a clock to at least one circuit in a system; and a low voltage reset circuit for generating an adjustment signal according to a level of a voltage to be detected, so that the clock generator adjusts or stops the clock supplied to the at least one circuit in the system. The voltage to be detected for example can be a supplied voltage.

In another perspective, the present invention also provides a method of adjusting system clock in low voltage detection, comprising: detecting a level of a supplied voltage; and generating an adjustment signal to control a clock generator according to the detection result.

In yet another perspective, the present invention also provides a low voltage reset circuit comprising: a voltage division circuit dividing a supplied voltage to generate multiple reference voltages; a comparator circuit comparing a voltage signal related to the supplied voltage with the multiple reference voltages; and a logic circuit determining whether to generate an adjustment signal according to the comparison result.

In the foregoing circuit and method, the adjustment signal is preferably generated when the supplied voltage is lower than a first threshold value.

In addition, in the foregoing circuit and method, the adjustment signal is preferably not generated when the supplied voltage is lower than a second threshold value.

When the supplied voltage is lower than the second threshold value, a reset signal can be generated, such that a circuit receiving the reset signal is reset to default settings.

The objectives, technical details, features, and effects of the present invention will be better understood with regard to the detailed description of the embodiments below, with reference to the drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic circuit diagram showing the first embodiment according to the present invention.

FIG. 2 illustrates the relationship between the adjustment signal, the reset signal and the supplied voltage.

FIG. 3A illustrates an example of a relationship between a clock 111 and the supplied voltage.

FIG. 3B illustrates another example of a relationship between the clock 111 and the supplied voltage.

FIG. 4 illustrates another example of a relationship between the clock 111 and the supplied voltage.

FIG. 5 is a schematic circuit diagram showing the second embodiment of the present invention.

FIG. 6 shows an embodiment of the clock generator.

FIG. 7 shows an embodiment of a low voltage reset circuit.

FIG. 8 shows another embodiment of the low voltage reset circuit.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

Please refer to FIG. 1 and FIG. 2. In accordance with the first embodiment of the present invention, a system 100 comprises a clock generator 110 for providing a clock 111 to an internal circuit 120, and a low voltage reset circuit 130 for detecting a supplied voltage. When the supplied voltage is lower than a first threshold value, the low voltage reset circuit 130 generates an adjustment signal 131 such that the clock generator 110 can suspend or slow down the clock 111, i.e., it does not output the clock 111. When the supplied voltage is lower than the second threshold value, the low voltage reset circuit 130 outputs a reset signal 132 to reset the internal circuit 120 to its default settings. In one embodiment, assuming that the normal operation voltage is Vcc±ΔV, the first threshold value may be set equal to the lower limit of the normal operation voltage (Vcc−ΔV), and the second threshold value may be set to a voltage lower than the lower limit. The range between the first threshold and the second threshold is referred to as a “clock frozen zone” hereinafter; in this zone, the system only suspends or slows down the clock but does not reset, so that it can avoid circuit malfunction while the system is not repetitively reset.

FIG. 3A illustrates an example of a relationship between the clock 111 and the supplied voltage. When the supplied voltage operates within a normal operation range, the clock generator 110 supplies the clock 111. When the supplied voltage is lower than the first threshold value but higher than the second threshold value, the clock generator 110 suspends the clock 111. When the supplied voltage is lower than the second threshold value, the clock generator 110 resumes the clock 111, such that the internal circuit 120 can be reset to its default settings when the low voltage reset circuit 130 generates the reset signal 132. In another embodiment, when the supplied voltage is lower than the first threshold value but higher than the second threshold value, the clock 111 is adjusted to a different frequency, such as a slower clock as shown in FIG. 3B. Certainly, depending on different circuit requirement, it is also possible to keep stopping the clock 111 when the supplied voltage is lower than the second threshold value; in this case the waveform is as shown in FIG. 4.

In the first embodiment as shown in FIG. 1, when the clock generator 110 receives the adjustment signal 131, it adjusts or completely stops the clock 111, which is the only clock supplied to the internal circuit 120. FIG. 5 shows another embodiment of the present invention, wherein when the supplied voltage operates in the clock frozen zone, the clock generator 110 provides two or more clocks to the internal circuit 120. The internal circuit 120 includes a first internal circuit 121 which should be suspended (e.g., a circuit for storing data) and a second internal circuit 122 which should not be suspended (e.g., a timer). When a clock generator 140 receives the adjustment signal 131, it only stops providing the clock 111 to the first internal circuit 121, but still keeps providing a clock 112 to the second internal circuit 122. Or, in another embodiment, it can be arranged so that the clock 111 is not completely stopped, but changes to a different frequency.

The clock generator 140 capable of achieving such function can be embodied in many forms. FIG. 6 illustrates one such embodiment; as shown in the figure, the clock generator 140 receives or generates by itself a basic clock. In accordance with this basic clock, the clock generator 140 outputs the clock 112 regardless whether an adjustment signal 131 is received or not. On the other hand, the clock generator 140 receives the adjustment signal 131, which is transmitted to a D flip flop 142 via an inverter 141. When the adjustment signal 131 is at high level and the D flip flop is enabled, the output of the D flip flop 142 is at low level; hence, the output of a logic circuit 143 is at low level. In other words, when the adjustment signal 131 is at high level, the clock generator 140 stops outputting the clock 111.

If the clock 111 is not to be stopped, but to be changed to a different frequency, the basic clock may go through a frequency divider (or multiplier). Or, the different frequency clock may be supplied by a different clock generator.

The low voltage reset circuit 130 can be embodied in many forms. FIG. 7 illustrates one such embodiment; as shown in the drawing, the low voltage reset circuit 130 includes a voltage division circuit 13R, a comparator circuit 13C, and a logic circuit 13L. After the voltage division circuit 13R obtains a dividend voltage from a supplied voltage, the dividend voltage is compared with a reference voltage in the comparator circuit 13C, and next a logic operation is performed on the comparison result in the logic circuit 13L to determine whether to output an adjustment signal 131 or a reset signal 132. More specifically, in this embodiment, the voltage division circuit 13R is formed by resistors R1-R4, which divide the supplied voltage to different dividend voltages. These dividend voltages are taken as different reference voltages, supplied to the negative input terminals of the comparators 133-135 in the comparator circuit 13C, respectively. In addition, the supplied voltage, after voltage-dropped by a resistor R, is inputted to the positive input terminals of the comparators 133-135.

When the supplied voltage operates within the normal operation range, that is, when the supplied voltage is higher than the first threshold value, voltages at the negative input terminals of the comparators 133-135 are all higher than that at the positive input terminals. Therefore, all the outputs of the comparators 133-135 are low, and the outputs of the logic circuits 136 and 137 are both low.

When the supplied voltage is lower than the first threshold value but higher than the second threshold value, the voltage at the negative input terminal of the comparator 133 is lower than that at its positive input terminal; yet, the voltages at the negative input terminals of the other comparators 134-135 are still higher than that at their positive input terminals. The output of the comparator 133 is high, but the outputs of the comparators 134-135 are low. Therefore, the logic circuit 136 changes its output and issues a high level adjustment signal 131; but the output of the logic circuit 137 is still low.

When the supplied voltage is lower than the second threshold value, the voltages at the negative input terminals of the comparators 133 and 134 are both lower than that at the positive input terminals; but the voltage at the negative input terminal of the comparator 135 is still higher than that at its positive input terminal. The outputs of the comparators 133 and 134 are high, but the output of the comparator 135 is low. Therefore, the logic circuit 136 changes its output to low level, but the logic circuit 137 changes its output to high level, and issues a high level reset signal 132.

When the supplied voltage is lower than the third threshold value (referring to FIG. 2), the voltages at the negative input terminals of comparators 133-135 are all lower than that at their positive input terminals. In this case, all the outputs of comparators 133-135 are high. Therefore, the logic circuit changes its output to low level and stops outputting the reset signal 132.

FIG. 8 shows another embodiment of the low voltage reset circuit 130, wherein the threshold inputted to the comparator 135 comes from an external reference setting, instead of the voltage supply. The rest of the circuit is the same as that shown in FIG. 7.

The present invention has been described in considerable detail with reference to certain preferred embodiments thereof. It should be understood that the description is for illustrative purpose, not for limiting the scope of the present invention. Those skilled in this art can readily conceive variations and modifications within the spirit of the present invention. As mentioned earlier, the low voltage reset circuit and the clock generator can be embodied in many forms; for example, the signals can be generated in many ways, and the definitions of high and low levels of each signal can be modified, which should fall within the scope of the present invention. As another example, after the clock generator receives the adjustment signal, other than completely stopping the clock (the embodiment shown in FIG. 1), or stopping providing the clock to part of the circuit but keep providing the clock to another part of the circuit (the embodiment shown in FIG. 5), a slower or faster clock may be provided in accordance with the adjustment signal, to meet the requirement of different applications. In view of the foregoing, the spirit of the present invention should cover all such and other modifications and variations, which should be interpreted to fall within the scope of the following claims and their equivalents. 

1. A circuit of adjusting system clock in low voltage detection,. comprising: a clock generator for supplying a clock to at least one circuit in a system; and a low voltage reset circuit for generating an adjustment signal according to a detected voltage level, so that the clock generator adjusts or stops the clock supplied to the at least one circuit in the system.
 2. The circuit of claim 1, wherein the low voltage reset circuit detects a voltage level of a supplied voltage, and when the voltage level is lower than a predetermined first threshold value, the low voltage reset circuit generates the adjustment signal.
 3. The circuit of claim 2, wherein the low voltage reset circuit stops generating the adjustment signal when the voltage level is lower than a predetermined second threshold value.
 4. The circuit of claim 2, wherein the low voltage reset circuit generates a reset signal when the voltage level is lower than a predetermined second threshold value, such that the at least one circuit in the system is reset to a predetermined value.
 5. The circuit of claim 4, wherein the low voltage reset circuit stops generating the reset signal when the voltage level is lower than a predetermined third threshold value.
 6. The circuit of claim 2, wherein the first threshold value is a lower limit of a normal operation voltage.
 7. The circuit of claim 1, wherein the clock generator generates two series of clocks, and the clock generator adjusts or stops one series of clocks but still provides the other series of clocks when the low voltage reset circuit generates the adjustment signal.
 8. A method of adjusting system clock in low voltage detection, comprising: detecting a level of a supplied voltage; and generating an adjustment signal to control a clock generator according to the detection result.
 9. The method of claim 8, wherein the clock generator adjusts or stops a clock when receiving the adjustment signal.
 10. The method of claim 8, wherein the clock generator generates two series of clocks, and the clock generator adjusts or stops one series of clocks but still provides the other series of clocks when it receives the adjustment signal.
 11. The method of claim 8, wherein the adjustment signal is generated when the level of the supplied voltage is lower than a predetermined first threshold value.
 12. The method of claim 11, wherein the adjustment signal is not generated when the level of the supply voltage is lower than a predetermined second threshold value.
 13. The method of claim 11, further comprising: generating a reset signal when the level of the supplied voltage is lower than a predetermined second threshold value, such that at least one circuit is reset to a predetermined value.
 14. The method of claim 13, wherein the reset signal is stopped when the level of the supplied voltage is lower than a predetermined third threshold value.
 15. The method of claim 11, wherein the first threshold value is a lower limit of a normal operation voltage.
 16. A low voltage reset circuit comprising: a voltage division circuit dividing a supplied voltage to generate multiple reference voltages; a comparator circuit comparing a voltage signal related to the supplied voltage with the multiple reference voltages; and a logic circuit determining whether to generate an adjustment signal according to the comparison result.
 17. The low voltage reset circuit of claim 16, wherein the logic circuit further decides whether to generate a reset signal according to the comparison result.
 18. The low voltage reset'circuit of claim 16, wherein the adjustment signal is generated when a level of the supplied voltage is lower than a predetermined first threshold value.
 19. The low voltage reset circuit of claim 16, wherein the adjustment signal is not generated when a level of the supplied voltage is lower than a predetermined second threshold value.
 20. The low voltage reset circuit of claim 17, wherein the reset signal is generated when the level of the supplied voltage is lower than a predetermined second threshold value.
 21. The low voltage reset circuit of claim 17, wherein the reset signal is not generated when the level of the supplied voltage is lower than a predetermined third threshold value. 